<?php

use Illuminate\Database\Seeder;

class SysUsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $baseData = [
            [
                'id' => 1,
                'name' => '千寻',
                'email' => 'zhaojianhui129@163.com',
                'password' => bcrypt('123456'),
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
            [
                'id' => 2,
                'name' => '管理员',
                'email' => 'admin@163.com',
                'password' => bcrypt('admin'),
                'created_at' => date('Y-m-d H:i:s'),
                'updated_at' => date('Y-m-d H:i:s')
            ],
        ];
        DB::table('sys_users')->insert($baseData);
    }
}
